/**
 * 校园专区首页
 */
(function($) {
  $(function () {
    if(getParamValue("saleType") == 2){//分享出去的首页，不能办理校园V网业务
        $("#campus_v").addClass("am-hide");
    }else{
        $("#campus_v").removeClass("am-hide");
    }
    var urlParams = getParams();
    if(urlParams){
        urlParams = "?" + urlParams;
    }else{
       urlParams = ""; 
    }
    $("#broadband").on("click", function () {
        window.location.href = "../broadband_list.html" + urlParams + (urlParams ? "&bd_type=3":"?bd_type=3");//必须传bd_type=3
    });
    $("#activity").on("click", function () {
        window.location.href = "http://120.24.49.23:6080/dpr/go/forward?uri=dzg/edu_services" + "&"+getParams();
    });
    $("#zifei").on("click", function () {
        window.location.href = "http://120.24.49.23:6080/dpr/go/forward?uri=dzg/edu_activities" + "&" +getParams();
    });
    $("#bd_open").on("click", function () {
      //type=1  仅校园宽带
      var orgParams = encodeURIComponent(getParams()); 
      window.location.href = "bd_openacct_list.html" + urlParams + (urlParams ? "&type=1":"?type=1")+"&orgParams="+orgParams;
    });
    
   $("#campus_v").on("click", function () {
        //校园V网
     var paramsWithoutShare = getParams(true);
       if(paramsWithoutShare){
         paramsWithoutShare = "?" + paramsWithoutShare;
       }else{
         paramsWithoutShare = ""; 
       }
      
       //window.location.href = "../goventerprise/esop/group_list.html?type=campus_v"+params;
     window.location.href = "vnet/campus_vnet.html"+paramsWithoutShare;
    });
  });
})(jQuery);